package com.xxx.generic;

import java.util.Comparator;

/**
 * @version v1.0
 * @Description:
 * @Author zhanzhongxin
 * @Date 2021/7/21 13:45
 * @Copyright 博为峰
 */
public class ComparatorImpl implements Comparator<Student> {
    @Override
    public int compare(Student o1, Student o2) {
        return o1.getAge() - o2.getAge();
    }
}
